﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Gnosis.Babel;

namespace Gnosis.SQLite.Columns
{
    public class ColumnNotNull
        : Constraint
    {
        public ColumnNotNull()
            : this(ConstraintName.Default)
        {
        }

        public ColumnNotNull(ConstraintName name)
            : base(name, "NOT NULL")
        {
        }

        public ColumnNotNull(ConstraintName name, ConflictClause onConflict)
            : base(name, "NOT NULL", new List<IExpression>{onConflict})
        {
        }
    }
}
